package br.com.roteadroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
 
public class AndroidGPSTrackingActivity extends Activity {
     
    Button btnShowLocation;
     
    // GPSTracker class
    GPSTracker gps;
     
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        btnShowLocation = (Button) findViewById(R.id.entrarBotao);
        btnShowLocation.setOnClickListener(new View.OnClickListener() {
            public void onClick(View arg0) {       
            	startService(new Intent("INICIAR_SERVICO"));
            }
        });
    }
     
}